home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / apel / emu-19.el.z / emu-19.el
Encoding:
Text File  |  1998-05-21  |  2.4 KB  |  108 lines

  1. ;;; emu-19.el --- emu API implementation for Emacs 19.*
  2.  
  3. ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
  4.  
  5. ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
  6. ;; Version: $Id: emu-19.el,v 7.18 1997/11/06 10:38:03 morioka Exp $
  7. ;; Keywords: emulation, compatibility
  8.  
  9. ;; This file is part of emu.
  10.  
  11. ;; This program is free software; you can redistribute it and/or
  12. ;; modify it under the terms of the GNU General Public License as
  13. ;; published by the Free Software Foundation; either version 2, or (at
  14. ;; your option) any later version.
  15.  
  16. ;; This program is distributed in the hope that it will be useful, but
  17. ;; WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  19. ;; General Public License for more details.
  20.  
  21. ;; You should have received a copy of the GNU General Public License
  22. ;; along with GNU Emacs; see the file COPYING.  If not, write to the
  23. ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  24. ;; Boston, MA 02111-1307, USA.
  25.  
  26. ;;; Code:
  27.  
  28. ;;; @ face
  29. ;;;
  30.  
  31. (defun-maybe find-face (face)
  32.   (car (memq face (face-list)))
  33.   )
  34.  
  35.  
  36. ;;; @ for tm-7.106
  37. ;;;
  38.  
  39. (defalias 'tl:make-overlay 'make-overlay)
  40. (defalias 'tl:overlay-put 'overlay-put)
  41. (defalias 'tl:overlay-buffer 'overlay-buffer)
  42.  
  43. (make-obsolete 'tl:make-overlay 'make-overlay)
  44. (make-obsolete 'tl:overlay-put 'overlay-put)
  45. (make-obsolete 'tl:overlay-buffer 'overlay-buffer)
  46.  
  47.  
  48. ;;; @ visible/invisible
  49. ;;;
  50.  
  51. (defmacro enable-invisible ())
  52.  
  53. (defmacro end-of-invisible ())
  54.  
  55. (defun invisible-region (start end)
  56.   (if (save-excursion
  57.     (goto-char (1- end))
  58.     (eq (following-char) ?\n)
  59.     )
  60.       (setq end (1- end))
  61.     )
  62.   (put-text-property start end 'invisible t)
  63.   )
  64.  
  65. (defun visible-region (start end)
  66.   (put-text-property start end 'invisible nil)
  67.   )
  68.  
  69. (defun invisible-p (pos)
  70.   (get-text-property pos 'invisible)
  71.   )
  72.  
  73. (defun next-visible-point (pos)
  74.   (save-excursion
  75.     (goto-char (next-single-property-change pos 'invisible))
  76.     (if (eq (following-char) ?\n)
  77.     (forward-char)
  78.       )
  79.     (point)
  80.     ))
  81.  
  82.  
  83. ;;; @ mouse
  84. ;;;
  85.  
  86. (defvar mouse-button-1 [mouse-1])
  87. (defvar mouse-button-2 [mouse-2])
  88. (defvar mouse-button-3 [down-mouse-3])
  89.  
  90.  
  91. ;;; @ string
  92. ;;;
  93.  
  94. (defmacro char-list-to-string (char-list)
  95.   "Convert list of character CHAR-LIST to string. [emu-19.el]"
  96.   (` (mapconcat (function char-to-string)
  97.         (, char-list)
  98.         "")
  99.      ))
  100.  
  101.  
  102. ;;; @ end
  103. ;;;
  104.  
  105. (provide 'emu-19)
  106.  
  107. ;;; emu-19.el ends here
  108.